package com.tienon.message.Test;

import java.util.Date;

import org.junit.Test;

import com.tienon.message.entity.Raw_msg_batch;
import com.tienon.message.thread.task.RawMsgBatchDBSubTask;
import com.tienon.message.util.SpringUtil;

public class TestRawMsgBatchDBSubTask {

	@Test
	public void test(){
		
		RawMsgBatchDBSubTask subTask = SpringUtil.getBean(RawMsgBatchDBSubTask.class);
		Raw_msg_batch data = new Raw_msg_batch();
		data.setBatId(888);
		//data.setSerail(333);
		data.setBsnCd("123456");
		data.setFilter(1);
		data.setOccDate(new Date());
		data.setSendTime(new Date());
		data.setSendNow(1);
		data.setBatSlice(1);
		data.setMsgType(1);
		data.setMsg("123456");
		data.setSplitFlag(1);
		data.setSendWay(1);
		data.setBatOrder(1);
		data.setSendTimes(1);
		data.setPrior(1);
		data.setReportFlag(1);
		data.setBatId(111);
		data.setOccDate(new Date());
		data.setLinkFlag(1);
		data.setState(1);
		data.setOccTime(new Date());
		
		subTask.addRawMsgBatch(data);
		System.out.println("ENG");
		
	}
	
}
